package com.varian.system.dto;

import com.varian.tool.enums.CommonStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author ben
 * @since 2024/7/9
 */
@Data
@Schema(title = "字典类型数据对象")
public class SysDictItemDTO {

    @Schema(title = "上级字典id")
    @NotNull(message = "上级字典id不能为空")
    private Long parentId;
    @Schema(title = "字典名称")
    @NotBlank(message = "字典名称不能为空")
    private String dictName;
    @Schema(title = "字典值")
    @NotBlank(message = "字典值不能为空")
    private String dictValue;
    @Schema(title = "字典渲染类型")
    @NotNull(message = "字典渲染类型不能为空")
    private String dictRenderType;
    @Schema(title = "字典描述")
    private String dictDesc;
    @Schema(title = "字典状态")
    @NotNull(message = "字典状态不能为空")
    private CommonStatusEnum dictStatus;
    @Schema(title = "权重")
    private Integer dictWeight;
    @Schema(title = "是否为默认项")
    private Boolean defaultItem;
}
